package com.example.administrator.yunniuusedcar.model.mode_benn;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by USER2015 on 2017/12/3.
 *  假数据  （测试用的）
 */

public class Home implements Serializable {

    /**
     * code : 1   广告： Index/getadverList
     * data : [{"advert_id":15,"logo":"http://carshop.cloudabull.com/static/Uploads/advert/2017-12-12\\5a2f51b95c21d.jpg"}]
     */

    private int code;
    private List<DatagoodsListsBeen> data;    // 广告
    @SerializedName("data")
    private List<Datamaunbeen> dataX;     // 主菜单
    @SerializedName("data")
    private List<Dataruncars> dataRanCar;   // 随机汽车

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<DatagoodsListsBeen> getData() {
        return data;
    }

    public void setData(List<DatagoodsListsBeen> data) {
        this.data = data;
    }

    public List<Datamaunbeen> getDataX() {
        return dataX;
    }

    public void setDataX(List<Datamaunbeen> dataX) {
        this.dataX = dataX;
    }

    public List<Dataruncars> getDataRanCar() {
        return dataRanCar;
    }

    public void setDataRanCar(List<Dataruncars> dataRanCar) {
        this.dataRanCar = dataRanCar;
    }

    public static class DatagoodsListsBeen {
        /**
         * advert_id : 15
         * logo : http://carshop.cloudabull.com/static/Uploads/advert/2017-12-12\5a2f51b95c21d.jpg
         */

        private int advert_id;
        private String logo;

        public int getAdvert_id() {
            return advert_id;
        }

        public void setAdvert_id(int advert_id) {
            this.advert_id = advert_id;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }
    }




    //菜单

    public static class Datamaunbeen {
        /**
         * name : 12
         * logo : http://carshop.cloudabull.com/static/Uploads/menu/2017-12-07/5a28e2b52b9c4.jpg
         * url : 1233
         */

        private String name;
        private String logo;
        private String url;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }


    //随机汽车

    public static class Dataruncars {
        /**
         * market_price : 5325.00
         * car_id : 18
         * collect : 0
         * name : 41
         * integral_price : 124.00
         * logo : http://carshop.cloudabull.com/static/Uploads/car/2017-12-12\5a2f44ecd137a.jpg
         */

        private String market_price;
        private int car_id;
        private int collect;
        private String name;
        private String integral_price;
        private String logo;

        public String getMarket_price() {
            return market_price;
        }

        public void setMarket_price(String market_price) {
            this.market_price = market_price;
        }

        public int getCar_id() {
            return car_id;
        }

        public void setCar_id(int car_id) {
            this.car_id = car_id;
        }

        public int getCollect() {
            return collect;
        }

        public void setCollect(int collect) {
            this.collect = collect;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIntegral_price() {
            return integral_price;
        }

        public void setIntegral_price(String integral_price) {
            this.integral_price = integral_price;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }
////////////////////////////////////////////////////////////


    }
}
